/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.thptduongbachmai.model.data;

import java.io.Serializable;
import java.util.List;
import vn.edu.thptduongbachmai.model.pojo.TaiKhoan;

/**
 *
 * @author Son
 */
public class TaiKhoanModel extends AbstractModel<TaiKhoan, Integer> {

    @Override
    protected Class getPOJOClass() {
      return TaiKhoan.class;
    }  public static TaiKhoanModel Instance = getInstance();

    private static TaiKhoanModel getInstance() {
        if (Instance == null) {
            Instance = new TaiKhoanModel();

        }
        return Instance;
    }
    public List<TaiKhoan> getAllUsers()
    {
        return TaiKhoanModel.Instance.getAll();
    }
    public TaiKhoan getUserById(Integer key)
    {
        return TaiKhoanModel.Instance.get(key);
    }
    public int getCountList()
    {
        return TaiKhoanModel.Instance.getCount();
    }
    public List<TaiKhoan> getSlideUsersDateModifyDes(long begin, int num)
    {
        
        return TaiKhoanModel.Instance.getSlideListDateModifyDesc(begin, num);
    }    
    
    
}
